package com.neuedu.spring.mybatis.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 患者表
 * @TableName register
 */
public class Register implements Serializable {
    /**
     * 病例号
     */
    private Integer registId;

    /**
     * 名称
     */
    private String name;

    /**
     * 性别
     */
    private String gender;

    /**
     * 年龄
     */
    private String age;

    /**
     * 出生日期
     */
    private Date birthday;

    /**
     * 看诊时间
     */
    private Date visitTime;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 级别ID
     */
    private Long registLevel;

    /**
     * 主诉
     */
    private String readme;

    /**
     * 现病史
     */
    private String present;

    /**
     * 现病史治疗情况
     */
    private String presentTreat;

    /**
     * 既往史
     */
    private String history;

    /**
     * 过敏史
     */
    private String allergy;

    /**
     * 确诊疾病
     */
    private String disease;

    /**
     * 处置方案
     */
    private String suit;

    /**
     * 药品清单
     */
    private String drug;

    /**
     * 用户ID
     */
    private Long userid;

    /**
     * Y  N 
     */
    private String book;

    /**
     * 挂号费用
     */
    private BigDecimal fee;

    /**
     * 1 代接诊，2 一看诊，3 已退
     */
    private String status;

    /**
     * 是否有效
     */
    private String del;

    /**
     * 创建时间
     */
    private Date createtime;

    private static final long serialVersionUID = 1L;

    /**
     * 病例号
     */
    public Integer getRegistId() {
        return registId;
    }

    /**
     * 病例号
     */
    public void setRegistId(Integer registId) {
        this.registId = registId;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 性别
     */
    public String getGender() {
        return gender;
    }

    /**
     * 性别
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 年龄
     */
    public String getAge() {
        return age;
    }

    /**
     * 年龄
     */
    public void setAge(String age) {
        this.age = age;
    }

    /**
     * 出生日期
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * 出生日期
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * 看诊时间
     */
    public Date getVisitTime() {
        return visitTime;
    }

    /**
     * 看诊时间
     */
    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    /**
     * 部门ID
     */
    public Long getDeptId() {
        return deptId;
    }

    /**
     * 部门ID
     */
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    /**
     * 级别ID
     */
    public Long getRegistLevel() {
        return registLevel;
    }

    /**
     * 级别ID
     */
    public void setRegistLevel(Long registLevel) {
        this.registLevel = registLevel;
    }

    /**
     * 主诉
     */
    public String getReadme() {
        return readme;
    }

    /**
     * 主诉
     */
    public void setReadme(String readme) {
        this.readme = readme;
    }

    /**
     * 现病史
     */
    public String getPresent() {
        return present;
    }

    /**
     * 现病史
     */
    public void setPresent(String present) {
        this.present = present;
    }

    /**
     * 现病史治疗情况
     */
    public String getPresentTreat() {
        return presentTreat;
    }

    /**
     * 现病史治疗情况
     */
    public void setPresentTreat(String presentTreat) {
        this.presentTreat = presentTreat;
    }

    /**
     * 既往史
     */
    public String getHistory() {
        return history;
    }

    /**
     * 既往史
     */
    public void setHistory(String history) {
        this.history = history;
    }

    /**
     * 过敏史
     */
    public String getAllergy() {
        return allergy;
    }

    /**
     * 过敏史
     */
    public void setAllergy(String allergy) {
        this.allergy = allergy;
    }

    /**
     * 确诊疾病
     */
    public String getDisease() {
        return disease;
    }

    /**
     * 确诊疾病
     */
    public void setDisease(String disease) {
        this.disease = disease;
    }

    /**
     * 处置方案
     */
    public String getSuit() {
        return suit;
    }

    /**
     * 处置方案
     */
    public void setSuit(String suit) {
        this.suit = suit;
    }

    /**
     * 药品清单
     */
    public String getDrug() {
        return drug;
    }

    /**
     * 药品清单
     */
    public void setDrug(String drug) {
        this.drug = drug;
    }

    /**
     * 用户ID
     */
    public Long getUserid() {
        return userid;
    }

    /**
     * 用户ID
     */
    public void setUserid(Long userid) {
        this.userid = userid;
    }

    /**
     * Y  N 
     */
    public String getBook() {
        return book;
    }

    /**
     * Y  N 
     */
    public void setBook(String book) {
        this.book = book;
    }

    /**
     * 挂号费用
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * 挂号费用
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * 1 代接诊，2 一看诊，3 已退
     */
    public String getStatus() {
        return status;
    }

    /**
     * 1 代接诊，2 一看诊，3 已退
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 是否有效
     */
    public String getDel() {
        return del;
    }

    /**
     * 是否有效
     */
    public void setDel(String del) {
        this.del = del;
    }

    /**
     * 创建时间
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * 创建时间
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Register other = (Register) that;
        return (this.getRegistId() == null ? other.getRegistId() == null : this.getRegistId().equals(other.getRegistId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getVisitTime() == null ? other.getVisitTime() == null : this.getVisitTime().equals(other.getVisitTime()))
            && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
            && (this.getRegistLevel() == null ? other.getRegistLevel() == null : this.getRegistLevel().equals(other.getRegistLevel()))
            && (this.getReadme() == null ? other.getReadme() == null : this.getReadme().equals(other.getReadme()))
            && (this.getPresent() == null ? other.getPresent() == null : this.getPresent().equals(other.getPresent()))
            && (this.getPresentTreat() == null ? other.getPresentTreat() == null : this.getPresentTreat().equals(other.getPresentTreat()))
            && (this.getHistory() == null ? other.getHistory() == null : this.getHistory().equals(other.getHistory()))
            && (this.getAllergy() == null ? other.getAllergy() == null : this.getAllergy().equals(other.getAllergy()))
            && (this.getDisease() == null ? other.getDisease() == null : this.getDisease().equals(other.getDisease()))
            && (this.getSuit() == null ? other.getSuit() == null : this.getSuit().equals(other.getSuit()))
            && (this.getDrug() == null ? other.getDrug() == null : this.getDrug().equals(other.getDrug()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getBook() == null ? other.getBook() == null : this.getBook().equals(other.getBook()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegistId() == null) ? 0 : getRegistId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getVisitTime() == null) ? 0 : getVisitTime().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getRegistLevel() == null) ? 0 : getRegistLevel().hashCode());
        result = prime * result + ((getReadme() == null) ? 0 : getReadme().hashCode());
        result = prime * result + ((getPresent() == null) ? 0 : getPresent().hashCode());
        result = prime * result + ((getPresentTreat() == null) ? 0 : getPresentTreat().hashCode());
        result = prime * result + ((getHistory() == null) ? 0 : getHistory().hashCode());
        result = prime * result + ((getAllergy() == null) ? 0 : getAllergy().hashCode());
        result = prime * result + ((getDisease() == null) ? 0 : getDisease().hashCode());
        result = prime * result + ((getSuit() == null) ? 0 : getSuit().hashCode());
        result = prime * result + ((getDrug() == null) ? 0 : getDrug().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getBook() == null) ? 0 : getBook().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", registId=").append(registId);
        sb.append(", name=").append(name);
        sb.append(", gender=").append(gender);
        sb.append(", age=").append(age);
        sb.append(", birthday=").append(birthday);
        sb.append(", visitTime=").append(visitTime);
        sb.append(", deptId=").append(deptId);
        sb.append(", registLevel=").append(registLevel);
        sb.append(", readme=").append(readme);
        sb.append(", present=").append(present);
        sb.append(", presentTreat=").append(presentTreat);
        sb.append(", history=").append(history);
        sb.append(", allergy=").append(allergy);
        sb.append(", disease=").append(disease);
        sb.append(", suit=").append(suit);
        sb.append(", drug=").append(drug);
        sb.append(", userid=").append(userid);
        sb.append(", book=").append(book);
        sb.append(", fee=").append(fee);
        sb.append(", status=").append(status);
        sb.append(", del=").append(del);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}